# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=geotagging
pkgver=0.7.1
pkgrel=0
pkgdesc="Photography geotagging tool"
url="https://github.com/jmlich/geotagging"
arch="x86_64 aarch64" # Limited by qt6-qtwebengine
license="GPL-3.0-or-later"
makedepends="
	cmake
	exiv2-dev
	qt6-qtbase-dev
	qt6-qttools-dev
	qt6-qtwebengine-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/jmlich/geotagging/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No upstream test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_DATADIR=/usr/share/geotagging

	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
fb80cef3723a31f89098bfd37e68c777a4c9b3c4ca87c8ca88595cf76465589a755343e618957bdd6698338985c887187a272bb5e0ae7a9408e8868cca047f49  geotagging-0.7.1.tar.gz
"
